package cn.shopifymall.camunda717.listener;

import org.camunda.bpm.engine.delegate.DelegateExecution;
import org.camunda.bpm.engine.delegate.ExecutionListener;
import org.springframework.stereotype.Component;

/**
 * @Author 孤风雪影
 * @Email gitee.com/efairy520
 * @Date 2024/5/12 0:45
 * @Version 1.0
 */
@Component("noticeCustomer")
public class NoticeCustomerStartListener implements ExecutionListener {
    @Override
    public void notify(DelegateExecution delegateExecution) throws Exception {
        String homeAddress = (String) delegateExecution.getVariable("homeAddress");
        Thread.sleep(1000);
        System.out.println("师傅正在赶往" + homeAddress + "为您维修家电");
    }
}
